package com.wardrobe.soa.api.person_center;

import com.wardrobe.dao.shop.ShopDao;
import com.wardrobe.domain.shop.ShopShowBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2018/11/19.
 */
@Service
public class PersonCenterService {
    @Autowired
    private ShopDao shopDao;

    public boolean isShop(long userId){
        ShopShowBean shopShowBean = shopDao.selectShopByUserId(userId);
        boolean flag =false;
        if (shopShowBean!=null){
            if(shopShowBean.getStatus()==1){
                flag = true;
            }
        }
        return flag;
    }
}

